import Vue from 'vue';
import Router from 'vue-router';

import AdminFrame from '@/views/layout/AdminFrame';

Vue.use(Router);

export default new Router({

  routes: [
    {
      path: '/',
      redirect: '/admin/index'
    },
    {
      path: '/login',
      component: () => import('@/views/Login')
    },
    {
      path: '/admin',
      component: AdminFrame,
      children: [
        {
          path: 'index',
          meta: { pageTitle: '管理平台首页', leftMenuIndex: 'admin_index' },
          component: () => import('@/views/admin/Index')
        },
        {
          path: 'user_info_list',
          meta: { pageTitle: '用户列表', leftMenuIndex: 'admin_system_user_info' },
          component: () => import('@/views/admin/UserInfoList')
        },
        {
          path: 'student_group_list',
          meta: { pageTitle: '学生组列表', leftMenuIndex: 'admin_system_student_group' },
          component: () => import('@/views/admin/StudentGroupList')
        },
        {
          path: 'student_list',
          meta: { pageTitle: '学生列表', leftMenuIndex: 'admin_system_student' },
          component: () => import('@/views/admin/StudentList')
        },
        {
          path: 'buzhi_zuoye_list',
          meta: { pageTitle: '布置作业列表', leftMenuIndex: 'admin_system_buzhi_zuoye' },
          component: () => import('@/views/admin/BuzhiZuoyeList')
        },
        {
          path: 'simple_dengji_zuoye_mgr',
          meta: { pageTitle: '简单登记作业完成情况', leftMenuIndex: 'admin_system_simple_dengji_zuoye_mgr' },
          component: () => import('@/views/admin/SimpleDengjiZuoyeMgr')
        },
        {
          path: 'full_table_dengji_zuoye_mgr',
          meta: { pageTitle: '全表登记作业完成情况', leftMenuIndex: 'admin_system_full_table_dengji_zuoye_mgr' },
          component: () => import('@/views/admin/FullTableDengjiZuoyeMgr')
        },

        {
          path: 'english_word_show',
          meta: { pageTitle: '英语单词朗读', leftMenuIndex: 'admin_system_english_word_show' },
          component: () => import('@/views/admin/EnglishWordShow')
        },
        {
          path: 'english_word_list',
          meta: { pageTitle: '英语单词管理', leftMenuIndex: 'admin_system_english_word_list' },
          component: () => import('@/views/admin/EnglishWordList')
        },
        {
          path: 'video_view',
          meta: { pageTitle: '在线视频观看', leftMenuIndex: 'admin_system_video_view' },
          component: () => import('@/views/admin/VideoView')
        },
        {
          path: 'zuoye_show',
          meta: { pageTitle: '作业查看', leftMenuIndex: 'admin_system_zuoye_show' },
          component: () => import('@/views/admin/ZuoyeShow')
        },
        {
          path: 'message_manager',
          meta: { pageTitle: '作业查看', leftMenuIndex: 'admin_system_message_manager' },
          component: () => import('@/views/admin/MessageManager')
        },
        {
          path: 'classes_list',
          meta: { pageTitle: '班级维护', leftMenuIndex: 'admin_system_classes_list' },
          component: () => import('@/views/admin/ClassesList')
        },
        // {
        //   path: 'teacher_list',
        //   meta: {pageTitle: '老师维护', leftMenuIndex: 'admin_system_teacher_list'},
        //   component: () => import('@/views/admin/TeacherList')
        // },
        {
          path: 'student_shift',
          meta: {pageTitle: '学生加入班级', leftMenuIndex: 'admin_system_student_shift'},
          component: () => import('@/views/admin/StudentShiftChange')
        },

      ]
    }
  ]
});
